<?php
/*
	插件初始化
*/
namespace jy_peiedu;
defined('BY_JYA') or exit('error');
function init($plugin){
	//定义本场景的一些独立,为空表示共用电商客的
	$plugin->weishop_order_detail='';
	$plugin->weishop_order_list='';
	$plugin->syscolor=$plugin->plugin_setting('basic')['syscolor']?:'';
	$plugin->plugins=array();
	$plugin->xuesheng_status=array('待审核','正常','已发证','异常');
	$plugin->cert_status=array('待审核','正常','已发证','异常');
	$plugin->sex=array('未知','男','女');
	$plugin->datapushs=array(
		'zhaopian'=>array(
			'left' => '10',
			'top' => '10',
			'type' => 'zhaopian',
			'width' => '80',
			'height' => '80',
		),
		'qr'=>array(
			'left' => '10',
			'top' => '10',
			'type' => 'qr',
			'width' => '80',
			'height' => '80',
		),
		'title'=>array(
			'left' => '10',
			'top' => '10',
			'type' => 'title',
			'width' => '80',
			'height' => '80',
		),
		'sex'=>array(
			'left' => '10',
			'top' => '10',
			'type' => 'sex',
			'width' => '120',
			'height' => '26',
		),
		'codenumber'=>array(
			'left' => '10',
			'top' => '10',
			'type' => 'codenumber',
			'width' => '200',
			'height' => '200',
		),
		'sn'=>array(
			'left' => '10',
			'top' => '10',
			'type' => 'sn',
			'width' => '226',
			'height' => '50',
		),
		'kecheng'=>array(
			'left' => '0',
			'top' => '0',
			'type' => 'kecheng',
			'width' => '316',
			'height' => '316',
		),
		'marketprice'=>array(
			'left' => '10',
			'top' => '10',
			'type' => 'marketprice',
			'width' => '120',
			'height' => '26',
		),
		'productprice'=>array(
			'left' => '10',
			'top' => '10',
			'type' => 'productprice',
			'width' => '120',
			'height' => '26',
		),
		'text'=>array(
			'left' => '10',
			'top' => '10',
			'type' => 'text',
			'width' => '260',
			'height' => '26',
			'value' => '自定义文字',
		),
	);
	$plugin->datatypes=array(
		'zhaopian'=>'2寸照片',
		'title'=>'姓名',
		'sex'=>'性别',
		'codenumber'=>'身份证',
		'sn'=>'证书编号',
		'kecheng'=>'课程名称',
		'text'=>'自定义文字',
	);
	$plugin->datademo=array(
		array(
			'left' => '100',
			'top' => '265',
			'type' => 'zhaopian',
			'width' => '90',
			'height' => '105',
		),
		array(
			'left' => '105',
			'top' => '410',
			'type' => 'qr',
			'width' => '90',
			'height' => '90',
		),
		array(
			'left' => '405',
			'top' => '244',
			'type' => 'title',
			'width' => '100',
			'height' => '26',
			'bold'=>1,
		),
		array(
			'left' => '620',
			'top' => '244',
			'type' => 'sex',
			'width' => '50',
			'height' => '26',
			'bold'=>1,
		),
		array(
			'left' => '405',
			'top' => '272',
			'type' => 'codenumber',
			'width' => '180',
			'height' => '26',
			'bold'=>1,
		),
		array(
			'left' => '435',
			'top' => '298',
			'type' => 'kecheng',
			'width' => '100',
			'height' => '26',
			'bold'=>1,
		),
		array(
			'left' => '415',
			'top' => '325',
			'type' => 'sn',
			'width' => '100',
			'height' => '26',
			'bold'=>1,
		),
	);
}